<template>
    <a-table tableLayout="fixed" style="width: 1000px;" :data-source="data" bordered :columns="rivalColumns"
        class="mb-2">
        <template #bodyCell="{ column, record, index }">
            <template v-if="column.key === 'index'">
                {{ index + 1 }}
            </template>
            <template v-if="column.key === 'legalPerson'">
                {{ record.competitor.legalPerson }}
            </template>
        </template>
    </a-table>
</template>
<script setup>


defineProps({
    data: {
        type: Array,
        default: () => []
    }
})
const rivalDatas = ref([])


const rivalColumns = [

{
        title: '序号',
        dataIndex: 'index',
        key: 'index',
        width: 80,
        align: "center",

    },
    {
        title: '公司名称',
        dataIndex: 'competitorName',
        key: 'competitorName',
    },
    {
        title: '公司法人',
        dataIndex: 'legalPerson',
        key: 'legalPerson',
        width: 140,
    },
    {
        title: '投标报价',
        dataIndex: 'bidPrice',
        key: 'bidPrice',
    },
    {
        title: '备注',
        dataIndex: 'remark',
        key: 'remark',
    },
   
];
</script>